{SysList} = require "./SysList"

SupperClzz = SysList
exports["@DeptList"] = {comment:"部门列表"}
exports.DeptList = new Class
  Extends: SupperClzz
  options:
    enyStr: "Dept"
    headArr: ["code","lbl","type","e.name","desc","is_root","is_leaf"]
    headObj:
      "code":"编码"
      "lbl":"名称"
      "type":"类型"
      "emp_id":"负责人"
      "desc":"描述"
      "is_root":"根节点"
      "is_leaf":"叶子"
  initPg: ->
    t = this
    o = t.options
    yield SupperClzz.prototype.initPg.apply t,arguments
    return
  delById: (id)->
    t = this
    o = t.options
    rltSet = yield o.thisSrv.ajax "treDelNdById",[id]
    rltSet
